<?php
defined('IN_PHPCMS') or exit('No permission resources.');
include $this->admin_tpl('header','admin');
?>
<h3 style="padding-left: 20px;padding-top: 10px">
	<?php echo $moter_info['real_name']?>——关联资源
	<a href="?m=talent&c=manage&a=init&talent_type=<?php echo $_GET['talent_type']?>&menuid=<?php echo $_GET['menuid']?>" style="font-size:14px;color: #0000FF"><em>返回上一级</em></a>
</h3>
<div class="subnav">
	<div class="content-menu ib-a blue line-x">
		<a href="?m=resource_asso&c=manage&a=moter_record&source_type=4&talent_id=<?=$id?>&talent_type=<?php echo $_GET['talent_type']?>&menuid=<?php echo $_GET['menuid']?>" <?php if(ROUTE_A=="moter_record"&&$source_type==4){ ?>   class="on"<?php } ?><em>履历</em></a>
		<span>|</span>
		<a href="?m=resource_asso&c=manage&a=init&source_type=1&talent_id=<?=$id?>&talent_type=<?php echo $_GET['talent_type']?>&menuid=<?php echo $_GET['menuid']?>" <?php if(ROUTE_A=="init"&&$source_type==1){ ?>   class="on"<?php } ?><em>资讯</em></a>
		<span>|</span>
		<a href="?m=resource_asso&c=manage&a=init&source_type=2&talent_id=<?=$id?>&talent_type=<?php echo $_GET['talent_type']?>&menuid=<?php echo $_GET['menuid']?>" <?php if(ROUTE_A=="init"&&$source_type==2){ ?>   class="on"<?php } ?>  > <em>视频</em></a>
		<span>|</span>
		<a href="?m=resource_asso&c=manage&a=init&source_type=3&talent_id=<?=$id?>&talent_type=<?php echo $_GET['talent_type']?>&menuid=<?php echo $_GET['menuid']?>" <?php if(ROUTE_A=="init"&&$source_type==3){ ?>   class="on"<?php } ?> ><em>图片集</em></a>
		<span>|</span>
		<a href="./index.php?m=resource_asso&c=video&a=init&talent_id=<?=$id?>&talent_type=<?php echo $_GET['talent_type']?>&menuid=<?php echo $_GET['menuid']?>"   ><em>视频集</em></a>


	</div>
</div>
<div class="pad-lr-10">
<form name="searchform" action="" method="get">
	<input type="hidden" value="resource_asso" name="m"> 
	<input type="hidden" value="manage" name="c"> 
	<input type="hidden" value="moter_record" name="a">
	<input type="hidden" value="<?php echo $id?>" name="talent_id">
	<input type="hidden" value="4" name="source_type">
	<table width="100%" cellspacing="0" class="search-form">
		<tbody>
			<tr>
				<td>
				<?php if($experience_btn){?>
				
				<?php }else{?>
				<a href="?m=experience&c=manage&a=add&source_type=4&talent_id=<?=$id?>"><button type="button" style="float:right;margin-right:20px;margin-top:10px;" ><em>添加履历</em></button></a>
				<?php }?>
					<div class="explain-col">
						履历类型名称:
						<input name="experience_type" class="input-text" value="<?php echo $_GET['experience_type']?>" type="text" size="20"> 
						<input type="submit" value="<?php echo L('search')?>" class="button" name="dosubmit">
					</div>
				</td>
			</tr>
		</tbody>
	</table>
</form>
<form name="myform" action="?m=experience&c=manage&a=del&talent_id=<?=$id?>" method="post" onsubmit="return confirm('<?php echo L('confirm')?>')">
<div class="table-list">
<table width="100%" cellspacing="0">
	<thead>
		<tr>
			<th  align="center" width="20"><input type="checkbox" value="" id="check_box" onclick="selectall('id[]');"></th>
			<th align="center">ID</th>
			<th align="center"><?php echo L('experience_name')?></th>
			<th align="center"><?php echo L('author')?></th>
			<th align="center"><?php echo L('time')?></th>
			<th align="center"><?php echo L('operation')?></th>
		</tr>
	</thead>
<tbody>
<?php
if(!empty($experience_info)){
	foreach($experience_info as $k=>$v) {
?>
    <tr>
		<td align="center"><input type="checkbox" value="<?php echo $v['id']?>" name="id[]"></td>
		<td align="center"><?php echo $v['id']?></td>
		<td align="center"><?php echo $v['experience_name']?></td>
		<td align="center"><?php echo $v['username']?></td>
		<td align="center"><?php if(!empty($v['update_time'])){echo str_cut($v['update_time'],15,'');}else{echo '<font color="red">（未设置）</font>';}?></td>
		<td align="center">
		<a href="?m=resource_asso&c=manage&a=detail&id=<?php echo $v['id']?>&talent_id=<?php echo $v['talent_id']?>"><?php echo L('detail');?></a>
		&nbsp;|&nbsp;
		<a href="?m=experience&c=manage&a=edit&id=<?php echo $v['id']?>&talent_id=<?php echo $v['talent_id']?>"><?php echo L('edit');?></a>
		&nbsp;|&nbsp;
		<a href="?m=experience&c=manage&a=del&id=<?php echo $v['id']?>&talent_id=<?=$id?>" onClick="return confirm('<?php echo L('confirm')?>')"><?php echo L('del')?></a>
		 </td>
    </tr>
<?php
	}
}else{
?>
	<tr><td colspan='7' style='color:red;font-size:18px;text-align:center;'><span>暂无数据！</span></td></tr>
<?php }?>
</tbody>
</table>

<div class="btn">
<label for="check_box"><a href="#" onClick="javascript:$('input[type=checkbox]').attr('checked', true)"><?php echo L('select_all')?></a>/<a href="#" onClick="javascript:$('input[type=checkbox]').attr('checked', false)"><?php echo L('cancel')?></a></label> <input type="submit" class="button" name="dosubmit" value="<?php echo L('delete')?>"/>
</div>

<div id="pages"><?php echo $pages?></div>
</div>
</form>
</div>
</body>
</html>